<?PHP
	// *******************************************************************************************
	// @Namespace : Top Level
	// @Description : Layout Manager Class
	// @Author : Ronald Guillen
	// *******************************************************************************************
	
	Framework::Import("Colibri.Core.*");
	
	class Layout
	{
		private $Settings = NULL;
		
		public function __construct()
		{
			$this->Settings = Settings::createInstance();
		}
		
		function loadTemplate($templatePath, $objectContext)
		{	
			global $Colibri;
			$templateFile = $this->Settings->readKey("CONTENT_PATH")."/themes/".$this->Settings->readKey("THEME_PATH")."/".$templatePath;
			
			if(file_exists($templateFile))
			{
				require_once($templateFile);
			}
			else
			{
				print "El dise&ntilde;o <b>".$templatePath."</b> no existe en el tema <b>".$this->Settings->readKey("THEME_PATH")."</b>.";
			}
		}
	}
	
?>